/*
 * @Author: Terry
 * @Date: 2022-02-22 15:15:09
 * @LastEditors: Terry
 * @LastEditTime: 2024-03-18 12:31:36
 * @Description: 账号管理api的js文件
 * @FilePath: \auxface_web\src\views\platform\api\account.js
 */
import axios from '@/utils/axios.js'
var  pre = 'platform/admin/v1/account/';
var func = ['getList','create','update','destory','corpReg','corpRegDic']; 
var api = {};
func.forEach(value=>{
    api[value] = pre + value
})
/**
 * @Description: 获取列表
 * @Author: Terry
 * @Date: 2022-09-28 11:03:42
 * @param {*} params
 */
var getList = (params)=>{
  return axios.get(api.getList,{params:params})
}
/**
 * @Description: 获取字典
 * @Author: Terry
 * @Date: 2022-09-28 11:03:42
 * @param {*} params
 */
var corpRegDic = ()=>{
  return axios.get(api.corpRegDic)
}
/**
 * @Description: 创建数据
 * @Author: Terry
 * @Date: 2022-09-28 11:04:05
 * @param {*} params
 */
var create = (params)=>{
  return axios.post(api.create,params)
}
/**
 * @Description: 更新数据
 * @Author: Terry
 * @Date: 2022-09-28 11:04:05
 * @param {*} params
 */
var update = (params)=>{
  return axios.put(api.update,params)
}
/**
 * @Description: 删除数据
 * @Author: Terry
 * @Date: 2022-09-28 11:04:05
 * @param {*} params
 */
var destory = (params)=>{
  return axios.delete(api.destory,{data:params})
}
/**
 * @Description: 删除数据
 * @Author: Terry
 * @Date: 2022-09-28 11:04:05
 * @param {*} params
 */
var corpReg = (params)=>{
  return axios.post(api.corpReg,params)
}

export { getList , create , update , destory , corpReg , corpRegDic}